//
//  HYBaseHandler.h
//  Around
//
//  Created by 华谕 on 2017/6/13.
//  Copyright © 2017年 HUYU. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HttpTool.h"

//处理理事件成功
typedef void(^SuccessBlock)(id obj);

//处理事件失败
typedef void(^FailedBlock)(NSError *error);

typedef enum{
    GET,
    POST
} RequestType;


@interface HYBaseHandler : NSObject

//首页轮播图/banner/findAll
+ (void)requestHomeBannerParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//登录/user/login
+ (void)requestLoginUserParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//忘记密码验证码/user/code4findpsw
+ (void)requestForgoPassParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//修改密码/user/findpsw
+ (void)requestChangePassParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//专线查询次数/systemConfig/stationLineQueryCount
+ (void)requestQueryCountParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//定位地区表/area/findAll
+ (void)requestAreaListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//注册请求验证码/user/code4register
+ (void)requestCodeRegisterParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//注册/user/register
+ (void)requestUserRegisterParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//入驻类型/serve/findAll
+ (void)requestCompanyInTypeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//查询起始地,目的地
+ (void)requestStartAreaListParmers:(NSDictionary *)parmers SelectType:(NSInteger)selectType Success:(SuccessBlock)success failed:(FailedBlock)failed;

//查询专线列表/stationLine/page
+ (void)requestStationLineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取客服电话 /systemConfig/servicePhone
+ (void)requestServicePhoneParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//推荐优质专线/recommend/save
+ (void)requestRecommendSavePhoneParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//公司查询 /company/select
+ (void)requestCompanySelectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//公司服务站点 /station/findByCompany
+ (void)requestStatioFindByCompanyParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通用表单
+ (void)requestWithTheFormUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通用Json
+ (void)requestWithJsonUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;







@end
